package org.llc.gof.creator.factory.method;



/**
 * @author lihuan
 */
public class FactoryHuman {
	
	public static Human createHuman(Class<? extends Human> person){
		Human human = null;  	
		try {
			human = (Human)Class.forName(person.getName()).getDeclaredConstructor().newInstance();  			
		} catch (Exception e) {
			System.out.println("error");
		}
		return human;
	}
}
